#ifndef _CLEAROBJECT_H
#define _CLEAROBJECT_H
//#include "LogManager.h"
#include "TimerManager.h"
//#include "ACEMemory.h"
//#include "CommandAccount.h"
#include "IPAccount.h"
#include "Reactor/AceReactorManager.h"
#include "LogSystem/LogManager.h"
#include "Message/MessageService.h"
#include "Common/BuffPacket.h"
#include "Common/MakePacket.h"
#include "Message/ModuleMessageManager.h"
#include "PacketParse/PacketParse.h"


//#include "ma"

inline void ClearObject()
{
	App_TimerManager::instance()->close();
	AppLogManager::instance()->Close();
	App_MessageService::instance()->Close();


	App_TimerManager::close();
	AppLogManager::close();
	App_ACEMemory::close();
	App_BuffPacketManager::close();
	AppCommandAccount::close();
	App_IPAccount::close();
	App_MakePacket::close();
	App_MessageBlockManager::close();
	App_TimerManager::close();
	App_ServerObject::close();
	App_ModuleLoader::close();
	App_MessagePool::close();
	App_MessageManager::close();
	App_MessageService::close();
	App_ModuleMessageManager::close();
	App_PacketParsePool::close();
	//App_ProactorManager::close();
	App_ReactorManager::close();

	App_ServerObject::close();
	//App_ProactorManager::close();
	App_ReactorManager::close();
	App_ModuleMessageManager::close();
	App_ModuleLoader::close();
	
}

#endif // _CLEAROBJECT_H
